$(function(){
	var html = `<div class="layui-header">
        <div class="layui-logo"><img src="/img/logo.png"></div>
        <!-- 头部区域（可配合layui已有的水平导航） -->
        <ul class="layui-nav layui-layout-left">
        <li class="layui-nav-item"><a href=""></a></li>
    </ul>
    <ul class="layui-nav layui-layout-right">
        <li class="layui-nav-item">
        <a href="javascript:;">
        admin
        </a>
        <dl class="layui-nav-child">
        <dd><a href=""style="padding-left: 20px">基本资料</a></dd>
    <dd><a href="" style="padding-left: 20px">安全设置</a></dd>
    </dl>
    </li>
    <li class="layui-nav-item"><a href="http://localhost:8088/login.html">退了</a></li>
    </ul>
    </div>`;
	
	var f_html = '       <div class="layui-footer">\n' +
        '         <!-- 底部固定区域 -->\n' +
        '         底部固定区域\n' +
        '       </div>\n';
	
	var left_html = '<ul class="layui-nav layui-nav-tree" lay-filter="test"  lay-shrink="">' +
        '<li class="layui-nav-item"><a href="/"><i class="layui-icon layui-icon-home" style="font-size: 18px;"></i><cite>首页</cite></a></li>' +
        '<li class="layui-nav-item"><a href="/pages/qxlt.html" target="_blank"><i class="layui-icon layui-icon-dialogue" style="font-size: 18px;"></i><cite>移民培训</cite></a></li>' +
        '<li class="layui-nav-item">' +
		'<a href="javascript:;"><i class="layui-icon layui-icon-ail-zhanghaoquanxianguanli" style="font-size: 18px;"></i><cite>人员管理</cite></a>' +
        '<dl class="layui-nav-child layui-nav-child-wy">' +
        '<dd><a href="/pages/XYGL/xymc.html">学员名册</a></dd>' +
        '<dd><a href="/pages/XYGL/jsgl.html">教师管理</a></dd>' +
        '<dd><a href="/pages/XYGL/bzrgl.html">班主任管理</a></dd>' +
		'</dl>' +
        '</li>' +
        '<li class="layui-nav-item">' +
        '<a href="javascript:;"><i class="layui-icon layui-icon-ail-zhanghaoquanxianguanli" style="font-size: 18px;"></i><cite>教学管理</cite></a>' +
        '<dl class="layui-nav-child layui-nav-child-wy">' +
        '<dd><a href="/pages/JXGL/xzbj.html">新增班级</a></dd>' +
        '<dd><a href="/pages/JXGL/pk.html">课程安排</a></dd>' +
        '<dd><a href="/pages/JXGL/kctz.html">课程调整</a></dd>' +
        '<dd><a href="/pages/JXGL/bjgl.html">班级管理</a></dd>' +
        '<dd><a href="/pages/JXGL/bwhdy.html">班委会定义</a></dd>' +
        '<dd><a href="/pages/JXGL/bwgl.html">班务管理</a></dd>' +
        '<dd><a href="/pages/BJGL/jsgl.html">证书打印</a></dd>' +
        '</dl>' +
        '</li>' +
        '<li class="layui-nav-item">' +
        '<a href="javascript:;"><i class="layui-icon layui-icon-ail-jichuguanli" style="font-size: 18px;"></i><cite>评估管理</cite></a>' +
        '<dl class="layui-nav-child layui-nav-child-wy">' +
        '<dd><a href="/pages/JXGL/bmbb.html">部门办班</a></dd>' +
        '<dd><a href="/pages/JXGL/zzdx.html">组织调训</a></dd>' +
        '<dd><a href="/pages/BJKJ/byzs.html">毕业证书</a></dd>' +
        '</dl>' +
        '</li>' +
        '<li class="layui-nav-item">' +
        '<a href="javascript:;"><i class="layui-icon layui-icon-ail-jichuguanli" style="font-size: 18px;"></i><cite>统计查询</cite></a>' +
        '<dl class="layui-nav-child layui-nav-child-wy">' +
        '<dd><a href="/pages/JXGL/bmbb.html">课程信息</a></dd>' +
        '<dd><a href="/pages/JXGL/bmbb.html">课程评价</a></dd>' +
        '</dl>' +
        '</li>' +
        '<li class="layui-nav-item">' +
        '<a href="javascript:;"><i class="layui-icon layui-icon-ail-daibanshixiang" style="font-size: 18px;"></i><cite>信息管理</cite></a>' +
        '<dl class="layui-nav-child layui-nav-child-wy">' +
        '<dd><a href="/pages/BJKJ/xyxx.html">教学评估</a></dd>' +
        '<dd><a href="/pages/PXGL/xykh.html">学员评估</a></dd>' +
        '</dl>' +
        '</li>' +
        '<li class="layui-nav-item">' +
		'<a href="javascript:;"><i class="layui-icon layui-icon-ail-xingzhuang-xingxing" style="font-size: 18px;"></i><cite>系统设置</a>' +
        '<dl class="layui-nav-child layui-nav-child-wy">' +
        '<dd><a href="/pages/PXBM/pxjh.html">培训计划</a></dd>' +
        '</dl>' +
        '</li>' +
		'</ul>';
	
	$("#header").empty();
	$("#footer").empty();
	$("#left_menu").empty();
	
	$("#header").append(html);
	$("#footer").append(f_html);
	$("#left_menu").append(left_html);
	layui.use('element', function(){
		var element = layui.element;

		//…
	});
	
	layui.use(['carousel', 'form'], function(){
		var carousel = layui.carousel;
		var form = layui.form;
		
		//图片轮播
		carousel.render({
			elem: '#test10',
			width: '100%',
			height: '440px',
			interval: 5000
		});
	});
});